package 策略_工厂.策略;

import java.util.HashMap;
import java.util.Map;

public class Factory {

    {
        map.put("支付宝", new ZhifubaoAdpter());
        map.put("微信", new WechatAdpter());
    }

    public static Map<String, PayAdpter> map = new HashMap<>();


    public static PayAdpter product(String key){
        return map.get(key);
    }
}
